package com.harvest.scientific.ladder.res

import com.harvest.scientific.ladder.base.BaModel
import com.harvest.scientific.ladder.wheel.wheelview.contract.TextProvider
import java.util.Objects

data class RememberBlankAntRes(
    var furnishedLetterConnection: String? = null,
    var antarcticEntry: String? = null,
):BaModel(), TextProvider {
    override fun provideText(): String {
        return antarcticEntry ?: ""
    }

    override fun equals(o: Any?): Boolean {
        if (this === o) {
            return true
        }
        if (o == null || javaClass != o.javaClass) {
            return false
        }
        val that = o as RememberBlankAntRes
        return furnishedLetterConnection == that.furnishedLetterConnection || antarcticEntry == that.antarcticEntry
    }

    override fun hashCode(): Int {
        return Objects.hash(furnishedLetterConnection, antarcticEntry)
    }
}
